package com.itheima.Wuziqi.service;

/**
 * 游戏规则接口
 */
public interface GameRule {
    // 检查落子是否有效
    boolean isValidMove(int[][] board, int row, int col);
    
    // 检查是否获胜
    boolean checkWin(int[][] board, int row, int col, int player);
    
    // 检查是否平局
    boolean checkDraw(int[][] board);
}
    